package com.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.Daily;
import com.example.pojo.DailyData;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DailyMapper extends BaseMapper<Daily> {

    //日报列表
    List<Daily> selectDaily(Daily daily);

    //日报数据
    List<DailyData> selectDailyData(DailyData dailyData);

    //日报详情
    Daily selectDailyViewId(Integer id);

    //我的日报
    List<Daily> selectMyDaily(Integer id);


    Integer selectTeamId(Integer id);

    List<Daily> selectTeamDaily(String employeeId, String departmentId);

    int insertDaily(Daily daily);
}
